package xin.baizhiedu.Util;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import xin.baizhiedu.entity.VoskResult;

public class JacksonMapperUtils {
    public static VoskResult json2pojo(String result, Class<VoskResult> voskResultClass) throws JsonProcessingException {
        ObjectMapper objectMapper = new ObjectMapper();
       return objectMapper.readValue(result, voskResultClass);
    }
}
